package com.gxar.quick.ar.server.base.common.enums;

/**
 * @author nice
 * @version 1.0
 * @created 2023/11/16.
 */
public enum TransactionStatusEnum {
    TRANSACTION_DEALING(0, "Dealing", "交易中"),
    TRANSACTION_COMPLETE(1, "Complete", "已完成"),
    TRANSACTION_REFUND(2, "Refund", "已退款"),
    TRANSACTION_CLOSE(-1, "Close", "已关闭"),
    TRANSACTION_FAILED(-2, "Failed", "已失败"),
    ;

    private final Integer code;
    private final String name;
    private final String desc;

    TransactionStatusEnum(Integer code, String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }
}
